<!doctype html>
<html>
<head>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>ApnTest</title>
<script type="text/javascript" src="cordova.js" charset="utf-8"></script>
<script type="text/javascript" src="apntest.js" charset="utf-8"></script>
<script type="text/javascript">
	/*var connXmppServer=function(){
		alert("start to conn xmpp server..");
		navigator.ApnPlugin.connXmppServer(successCallback,errorCallback,{"username":"chiang","password":"123456"});
	}
	
	var successCallback=function(){
		alert("Connect server success!");
	}
	
	var errorCallback=function(){
		alert("Connect server failed!");
	}*/

</script></p> <p></head>
<body>
</p> <p><h2>Apntest By Chiang.C</h2>
<input type="button" id="connXmppServerBtn" onClick="connXmppServer('chiang','150783')" value="连接服务器" style="height:50px ; width:auto"/>&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" id="sendMsgBtn" onClick="sendMessage()"  value="发送消息" style="height:50px; width:auto"/>
<br/><br/>
<span id="messageTitle" style=" font-size:20px; color:#000">Messages From Server:</span>
<hr/>
<span id="messageInfo" style=" font-size:20px; color:#05F"></span>
</body>
</html>